import request from '@/utils/request'
import React from 'react'
import styles from './style.less'

class ConfigViewer extends React.Component {

    state={
        configJSON = {}
    } 

    componentDidMount(){
        request('config').then(res=>{
            console.log(res)
            this.setState({configJSON: res})
        })
    }

    render(){
        return <div >

            {JSON.stringify(this.state.configJSON)}
        </div>
    }
}
export default ConfigViewer